﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Flight_Reservation.Algrithm
{
    class ReachableNode
    {
        public Node Node { get; set; }
        public Edge Edge { get; set; }
        public double TotalPrice { get;  set; }

        public ReachableNode(Node node, Edge edge)
        {
            Node = node;
            Edge = edge;
        }

        public int CompareTo(ReachableNode rNode)
        {
            return Node.TotalPrice.CompareTo(rNode.Node.TotalPrice);
        }
    }
}
